package com.ruoyi.system.mapper.warehousestate;

import com.ruoyi.system.domain.db.warehousestate.OrderWarehouseState;
import com.ruoyi.system.domain.dto.OrderWarehouseStateDto;
import org.apache.ibatis.annotations.Param;

import java.util.*;
/**
 * (OrderWarehouseState)表数据库访问层
 *
 * @author makejava
 * @since 2023-08-04 16:23:18
 */
public interface OrderWarehouseStateMapper {

    /**
     * 根据订单id查询出订单入库状态
     */
    List<OrderWarehouseStateDto> queryOrderWarehouseStateByOrderId(Long orderId);

    /**
     * 新增数据
     *
     * @param orderWarehouseState 实例对象
     * @return 影响行数
     */
    int insert(OrderWarehouseState orderWarehouseState);

    /**
     * 根据task删除订单入库状态
     */
    int deleteOrderWarehousesStateByTaskId(Long taskId);

    /**
     * 批量入库状态
     */
    int batchInsert(List<OrderWarehouseState> orderWarehouseStates);

    /**
     * 更新订单入库状态
     */
    int updateOrderWarehouseStateByTaskId(@Param("taskId") Long taskId, @Param("state") Integer state);

}

